package cn.iune.erp.invoice;

import java.sql.SQLException;
import java.util.List;

import com.alibaba.fastjson.JSONObject;

public interface IAccountInvoiceDetailDao {

	public void insert(AccountInvoiceDetail a);
	
	public AccountInvoiceDetail update(AccountInvoiceDetail a);

	public void delete(String fID);

	public AccountInvoiceDetail getByID(String fID);
	
	public List<AccountInvoiceDetail> getAll();
	

	public List<AccountInvoiceDetail> getByMasterID(String fMasterID);

	JSONObject query(JSONObject data) throws SQLException;

	AccountInvoiceDetail getByNo(String accountInvoiceNo, String serialNo, String enterpriseNo);

	JSONObject create(JSONObject data);

	List<AccountInvoiceDetail> getByOrigin(String origin, String originNo, String originSerialNo, String enterpriseNo);


}
